/*  1:   */ package org.jetbrains.debugger.sourcemap;
/*  2:   */ 
/*  3:   */

import com.intellij.openapi.util.NullableLazyValue;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.util.Processor;
import com.intellij.util.Url;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */
/* 10:   */ 
/* 11:   */ public class SourceMap
/* 12:   */ {
/* 13:   */   private final MappingList a;
/* 14:   */   final MappingList[] sourceIndexToMappings;
/* 15:   */   private final String b;
/* 16:   */   private final SourceResolver c;
/* 17:   */   
/* 18:   */   public SourceMap(@Nullable String paramString, @NotNull MappingList paramMappingList, @NotNull MappingList[] paramArrayOfMappingList, @NotNull SourceResolver paramSourceResolver)
/* 19:   */   {
/* 20:25 */     this.b = paramString;
/* 21:26 */     this.a = paramMappingList;
/* 22:27 */     this.sourceIndexToMappings = paramArrayOfMappingList;
/* 23:28 */     this.c = paramSourceResolver;
/* 24:   */   }
/* 25:   */   
/* 26:   */   @NotNull
/* 27:   */   public SourceResolver getSourceResolver()
/* 28:   */   {
/* 29:33 */     SourceResolver tmp4_1 = this.c;
/* 30:33 */     if (tmp4_1 == null) {
/* 31:33 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/debugger/sourcemap/SourceMap", "getSourceResolver" }));
/* 32:   */     }
/* 33:33 */     return tmp4_1;
/* 34:   */   }
/* 35:   */   
/* 36:   */   @Nullable
/* 37:   */   public String getOutFile()
/* 38:   */   {
/* 39:38 */     return this.b;
/* 40:   */   }
/* 41:   */   
/* 42:   */   public Url[] getSources()
/* 43:   */   {
/* 44:42 */     return this.c.canonicalizedSources;
/* 45:   */   }
/* 46:   */   
/* 47:   */   public MappingList getMappings()
/* 48:   */   {
/* 49:46 */     return this.a;
/* 50:   */   }
/* 51:   */   
/* 52:   */   public boolean processMappingsInLine(@NotNull List<Url> paramList, int paramInt, @NotNull Processor<MappingEntry> paramProcessor, @Nullable VirtualFile paramVirtualFile, @Nullable NullableLazyValue<SourceResolver.Resolver> paramNullableLazyValue)
/* 53:   */   {
/* 54:54 */     if (paramList == null) {
/* 55:54 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/debugger/sourcemap/SourceMap", "processMappingsInLine" }));
/* 56:   */     }
/* 57:54 */     if (paramProcessor == null) {
/* 58:54 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "2", "org/jetbrains/debugger/sourcemap/SourceMap", "processMappingsInLine" }));
/* 59:   */     }
/* 60:54 */     MappingList localMappingList = this.c.findMappings(paramList, this, paramVirtualFile);
/* 61:55 */     if (localMappingList == null)
/* 62:   */     {
/* 63:56 */       if (paramNullableLazyValue != null)
/* 64:   */       {
/* 65:57 */         SourceResolver.Resolver localResolver = (SourceResolver.Resolver)paramNullableLazyValue.getValue();
/* 66:58 */         if (localResolver != null) {
/* 67:59 */           localMappingList = this.c.findMappings(this, localResolver);
/* 68:   */         }
/* 69:   */       }
/* 70:62 */       if (localMappingList == null) {
/* 71:63 */         return false;
/* 72:   */       }
/* 73:   */     }
/* 74:66 */     return localMappingList.processMappingsInLine(paramInt, paramProcessor);
/* 75:   */   }
/* 76:   */   
/* 77:   */   @NotNull
/* 78:   */   public MappingList getMappingsOrderedBySource(int paramInt)
/* 79:   */   {
/* 80:71 */     MappingList tmp6_5 = this.sourceIndexToMappings[paramInt];
/* 81:71 */     if (tmp6_5 == null) {
/* 82:71 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/debugger/sourcemap/SourceMap", "getMappingsOrderedBySource" }));
/* 83:   */     }
/* 84:71 */     return tmp6_5;
/* 85:   */   }
/* 86:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.debugger.sourcemap.SourceMap

 * JD-Core Version:    0.7.0.1

 */